package org.jeecg.modules.app.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Description: 应用管理
 * @Author: sean
 * @Date:   2024-09-30
 * @Version: V1.0
 */
@Data
@TableName("app_client")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="app_client对象", description="应用管理")
public class AppClient implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**应用编号*/
    @Excel(name = "应用信息id", width = 15)
    @ApiModelProperty(value = "应用信息id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long infoId;
    /**唯一编号: android包名或ios Bundle Id*/
    @Excel(name = "code", width = 15)
    @ApiModelProperty(value = "code")
    private String code;
    /**客户端名称*/
    @Excel(name = "name", width = 15)
    @ApiModelProperty(value = "name")
    private String name;
	/**appId*/
	@Excel(name = "appId", width = 15)
    @ApiModelProperty(value = "appId")
    private String appId;
	/**appSecret*/
	@Excel(name = "appSecret", width = 15)
    @ApiModelProperty(value = "appSecret")
    private String appSecret;
    /**应用类型 1-APP 2-MP 3-H5*/
    @Excel(name = "应用类型 1-APP 2-MP 3-H5", width = 15)
    @ApiModelProperty(value = "应用类型 1-APP 2-MP 3-H5")
    private String appType;
    @TableField(exist = false)
    private String appTypeTxt;
    /**平台类型 1-android 2-ios*/
    @Excel(name = "平台类型 1-android 2-ios", width = 15)
    @ApiModelProperty(value = "平台类型 1-android 2-ios")
    private String platformType;
    @TableField(exist = false)
    private String platformTypeTxt;
    @TableField(exist = false)
    private String url;
	/**归属运营商*/
    @ApiModelProperty(value = "归属运营商")
    private String sysOrgCode;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
	/**是否删除（0：否、1：是）*/
	@Excel(name = "是否删除（0：否、1：是）", width = 15)
    @ApiModelProperty(value = "是否删除（0：否、1：是）")
    @TableLogic(value="0", delval = "1")
    private Integer isDelete;

    @TableField(exist = false)
    private ArrayNode upgradeJson;
}
